package priv.hibernate.entry2;

public class Order {
	private Integer orderId;
	private String orderName;
	
	private Cutomer cutomer;

	public Integer getOrderId() {
		return orderId;
	}

	public void setOrderId(Integer orderId) {
		this.orderId = orderId;
	}

	public String getOrderName() {
		return orderName;
	}

	public void setOrderName(String orderName) {
		this.orderName = orderName;
	}

	public Cutomer getCutomer() {
		return cutomer;
	}

	public void setCutomer(Cutomer cutomer) {
		this.cutomer = cutomer;
	}

	

	@Override
	public String toString() {
		return "Order [orderId=" + orderId + ", orderName=" + orderName + "]";
	}

	public Order(Integer orderId, String orderName, Cutomer cutomer) {
		this.orderId = orderId;
		this.orderName = orderName;
		this.cutomer = cutomer;
	}

	public Order() {
	}
	
	
}
